diff --git a/view/include/navbar.php b/view/include/navbar.php index efecf2756..93a6ee50d 100644 --- a/view/include/navbar.php +++ b/view/include/navbar.php @@ -1,1325 +1,1389 @@ " class="btn btn-default" style="position: absolute; right: 10px; top: 5px;"> body{padding-top:0;}'; } echo ''; return ''; } if (!empty($advancedCustomUser->keepViewerOnChannel)) { if (!empty($_GET['channelName'])) { _session_start(); $_SESSION['channelName'] = $_GET['channelName']; } if (!empty($_GET['leaveChannel'])) { _session_start(); unset($_SESSION['channelName']); } } session_write_close(); global $includeDefaultNavBar, $global, $config, $advancedCustom, $advancedCustomUser; if (!isset($global['systemRootPath'])) { require_once '../videos/configuration.php'; } require_once $global['systemRootPath'] . 'objects/user.php'; require_once $global['systemRootPath'] . 'objects/category.php'; $_GET['parentsOnly'] = "1"; if (empty($_SESSION['language'])) { $lang = 'us'; } else { $lang = $_SESSION['language']; } $thisScriptFile = pathinfo($_SERVER["SCRIPT_FILENAME"]); if (empty($sidebarStyle)) { $sidebarStyle = "display: none;"; } $includeDefaultNavBar = true; AVideoPlugin::navBar(); if (!$includeDefaultNavBar) { return false; } ?> userMustBeLoggedIn) && !empty($advancedCustomUser->userMustBeLoggedInCloseButtonURL)) { ?> userMustBeLoggedIn) && empty($advancedCustom->disableNavbar)) || $thisScriptFile["basename"] === "signUp.php" || $thisScriptFile["basename"] === "userRecoverPass.php") || User::isLogged()) { $updateFiles = getUpdatesFilesArray(); ?> " data-placement="right" > keepViewerOnChannel) && !empty($_SESSION['channelName'])) { $user = User::getChannelOwner($_SESSION['channelName']); ?> "> + ?>" name="search" placeholder="" id="searchFormInput"> menuBarHTMLCode->value)) { echo $advancedCustom->menuBarHTMLCode->value; } ?> doNotShowUploadButton)) { ?> " data-placement="left" > "> uploadButtonDropdownText) ? $advancedCustom->uploadButtonDropdownText : ""; ?> onlyVerifiedEmailCanUpload) && $advancedCustomUser->onlyVerifiedEmailCanUpload && User::isVerified()) || (isset($advancedCustomUser->onlyVerifiedEmailCanUpload) && !$advancedCustomUser->onlyVerifiedEmailCanUpload) || !isset($advancedCustomUser->onlyVerifiedEmailCanUpload)) { ?> doNotShowUploadMP4Button)) { ?> " data-placement="left" > uploadMP4ButtonLabel) ? __("Direct upload") : $advancedCustom->uploadMP4ButtonLabel; ?> doNotShowImportMP4Button)) { ?> " data-placement="left" > importMP4ButtonLabel) ? __("Direct Import Local Videos") : $advancedCustom->importMP4ButtonLabel; ?> doNotShowEmbedButton)) { ?> " data-placement="left" > embedButtonLabel) ? __("Embed a video link") : $advancedCustom->embedButtonLabel; ?> " data-placement="left" > " data-placement="left" > "> uploadButtonDropdownText) ? $advancedCustom->uploadButtonDropdownText : ""; ?> $value) { //$value = strtoupper($value); $objFlag->$value = $value; } if ($lang == 'en') { $lang = 'us'; } ?> signInOnRight)) { if (User::isLogged()) { if (!$advancedCustomUser->disableSignOutButton) { ?> doNotShowRightProfile)) { $tooltip = ""; if (User::isLogged()) { $tooltip = 'data-toggle="tooltip" data-html="true" title="' . User::getName() . ":: " . User::getMail() . '" data-placement="left"'; } else { $tooltip = 'data-toggle="tooltip" data-html="true" title="' . __("Login") . '" data-placement="left"'; } ?> > disableSignOutButton) { ?> MyChannelLabel); ?> getAuthCanViewChart() == 0) && (User::canUpload())) || (($config->getAuthCanViewChart() == 1) && (User::canViewChart()))) { ?> CategoryLabel); ?> doNotShowLeftHomeButton)) { ?> doNotShowLeftTrendingButton)) { ?> doNotShowLeftProfile)) { if (User::isLogged()) { ?> disableSignOutButton) { ?> MyChannelLabel); ?> getAuthCanViewChart() == 0) && (User::canUpload())) || (($config->getAuthCanViewChart() == 1) && (User::canViewChart()))) { ?> CategoryLabel); ?> CategoryLabel); ?> doNotShowLeftMenuAudioAndVideoButtons)) { ?> "> "> "> removeBrowserChannelLinkFromMenu)) { ?> CategoryLabel); ?> "; foreach ($subcats as $subcat) { if ($subcat['parentId'] != $catId) { continue; } if (empty($subcat['total'])) { continue; } if (is_array($parsed_cats) && in_array($subcat['id'], $parsed_cats)) { continue; } //$parsed_cats[] = $subcat['id']; echo '' . '' . ' ' . $subcat['name'] . ' ' . $subcat['total'] . ''; echo ''; mkSub($subcat['id']); echo ''; } echo ""; } } } if (empty($advancedCustom->doNotDisplayCategoryLeftMenu)) { $post = $_POST; $get = $_GET; unset($_GET); unset($_POST); $_GET['current'] = $_POST['current'] = 1; $_GET['parentsOnly'] = 1; $categories = Category::getAllCategories(); foreach ($categories as $value) { if ($value['parentId']) { continue; } if ($advancedCustom->ShowAllVideosOnCategory) { $total = $value['fullTotal']; } else { $total = $value['total']; } if (empty($total)) { continue; } if (in_array($value['id'], $parsed_cats)) { continue; } //$parsed_cats[] = $value['id']; echo '' . ''; echo ' ' . $value['name']; if (empty($advancedCustom->hideCategoryVideosCount)) { echo ' ' . $total . ''; } echo ''; mkSub($value['id']); echo ''; } $_POST = $post; $_GET = $get; } - + $_REQUEST['rowCount'] = $_rowCount; ?> disableHelpLeftMenu)) { ?> disableAboutLeftMenu)) { ?> disableContactLeftMenu)) { ?> underMenuBarHTMLCode->value)) { echo $advancedCustom->underMenuBarHTMLCode->value; } } else if ($thisScriptFile["basename"] !== 'user.php' && empty($advancedCustom->disableNavbar)) { } unset($_GET['parentsOnly']); ?>